home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Blogs / BlogJetSetup.exe / {app} / Data / Templates / blogthis.js < prev    next >
Text File  |  2006-05-17  |  535b  |  21 lines

  1. <script type="text/javascript">
  2.  
  3. ext = external.menuArguments;
  4. doc = external.menuArguments.document;
  5. sel = "";
  6. sel = doc.selection.createRange().text;
  7. url = escape(ext.location.href);
  8. tit = escape(doc.title);
  9.  
  10. window.clipboardData.setData("Text", sel);
  11.  
  12. sel = escape(sel);
  13.  
  14. var commandtoRun = "{$ .Path $}";
  15. var commandParms = "-blogthis " + "\"" + url + "\" " + tit + " \" " + sel;
  16.  
  17. var oShell = new ActiveXObject("Shell.Application");
  18. oShell.ShellExecute(commandtoRun, commandParms, "", "open", "1");
  19.  
  20. </script>
  21.